//
//  GGCalendarViewController.m
//  ggtool
//  日历
//  Created by engfei on 2017/4/26.
//  Copyright © 2017年 GaiGai. All rights reserved.
//

#import "GGCalendarViewController.h"
#import "GGCalendarLogicView.h"
#import "GGCalendarTool.h"

@interface GGCalendarViewController ()

@property (nonatomic, strong) GGCalendarTool *tool;
@property (nonatomic, strong) GGCalendarView *calendarView;

@end

@implementation GGCalendarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.tool = [[GGCalendarTool alloc] init];
    
    CGRect rect = self.view.bounds;
    rect.origin.y += 64;
    
    self.calendarView = [[GGCalendarView alloc] initWithFrame:rect];
    
    // 测试
    self.calendarView.logicView.backgroundColor = [UIColor redColor];
    
    [self.view addSubview:self.calendarView];
    
    [self.tool reloadCalendarView:self.calendarView];
 
    
    
//    [[GGCalendarTool shareTool] toolTest];
//
//    GGCalendarTitleView *titleView = [[GGCalendarTitleView alloc] initWithFrame:self.view.bounds];
////    titleView.backgroundColor = [UIColor purpleColor];
//    titleView.frame = CGRectMake(0, 100, 50, 30);
//    titleView.isHiddenDetail = NO;
//    titleView.titleLabel.text = @"aa";
//    titleView.detailLabel.text = @"bb";
//    [self.view addSubview:titleView];
}




@end
